import { post, get } from './index'

export function getAll(data) {
  return post('/v1/bk/market/card_order/list-all', data)
}

export function getNew(data) {
  return post('/v1/bk/market/card_order/list-new', data)
}

export function getExport(data) {
  return post('/v1/bk/market/card_order/list-export', data)
}

export function editOrder(data) {
  return post('/v1/bk/market/card_order/update', data)
}

export function getDelivered(data) {
  return post('/v1/bk/market/card_order/list-deliver', data)
}

export function getPending(data) {
  return post('/v1/bk/market/card_order/list-waitdone', data)
}

export function getProcessed(data) {
  return post('/v1/bk/market/card_order/list-alreadydone', data)
}

export function getUnmatch(data) {
  return post('/v1/bk/market/card_order/list-unmatch', data)
}

export function getActivated(data) {
  return post('/v1/bk/market/card_order/list-activated', data)
}

export function getRecycle(data) {
  return post('/v1/bk/market/card_order/list-recyclebin', data)
}

export function batchUpdateStatus(data) {
  return post('/v1/bk/market/card_order/status-sets', data)
}

export function createExport(data) {
  return post('/v1/bk/market/card_order/file/create', data)
}

export function getExportFile(params) {
  return get('/v1/bk/market/card_order/file/get', params)
}

export function importFile(data) {
  return post('/v1/bk/market/card_order/express-import', data)
}

export function getDetail(data) {
  return post('/v1/bk/market/card_order/get', data)
}
